package demo7;

/**
 * @author Huangjin
 * @version 1.0
 * describe:
 * @date 2023/2/28 18:17
 */
public class ValueOfDemo {
    public static void main(String[] args) {
        int a = 123;
        String s1 = String.valueOf(a);
        System.out.println(s1);
        double b = 123.456;
        String s2 = String.valueOf(b);
        System.out.println(b);
        String s3 = b+"";
        System.out.println(s3);

        //////////////////////
        int a1 = 123;
        String sa = String.valueOf(a1);
        System.out.println(sa);
        double b1 = 123.456;
        String sb = String.valueOf(b1);
        System.out.println(b1);
        String sc = b1+"";
        System.out.println(sc);
    }
}
